//
//  ActivityJoinHeaderView.m
//  LovingPartyBuilding
//
//  Created by 刘应平 on 17/5/1.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import "ActivityJoinHeaderView.h"

/**  34  */
@implementation ActivityJoinHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.label];
        self.label.sd_layout
        .topSpaceToView(self,11 * [UIScreen zj_screenHScale])
        .leftEqualToView(self)
        .widthIs([UIScreen zj_screenWith])
        .heightIs(12 * [UIScreen zj_screenHScale]);
    }
    return self;
}


- (void)setNumberString:(NSString *)numberString{
    _numberString = numberString;
    self.label.text = [NSString stringWithFormat:@"共%@个热门活动",numberString];
}
- (UILabel *)label{
    if (!_label) {
        _label = ({
            UILabel *label = [UILabel new];
            label.textAlignment = NSTextAlignmentCenter;
            label.textColor = [UIColor grayColor];
            label.backgroundColor = [UIColor clearColor];
            label.font = [UIFont systemFontOfSize:14 * [UIScreen zj_textFontScale]];
            label;
        });
    }
    return _label;
}

@end
